
package com.fis.mca.persistence;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for chargeBandVersion complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="chargeBandVersion">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="bandVersionId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="chargeBand" type="{http://chargebandversion.mca.fis.com/}chargeBand" minOccurs="0"/>
 *         &lt;element name="effectDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="expireDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="timeZone" type="{http://chargebandversion.mca.fis.com/}timeZone" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "chargeBandVersion", propOrder = {
    "bandVersionId",
    "chargeBand",
    "effectDate",
    "expireDate",
    "price",
    "timeZone"
})
public class ChargeBandVersion {

    protected int bandVersionId;
    protected ChargeBand chargeBand;
    @XmlSchemaType(name = "dateTime")
    protected Date effectDate;
    @XmlSchemaType(name = "dateTime")
    protected Date expireDate;
    protected int price;
    protected TimeZone timeZone;

    /**
     * Gets the value of the bandVersionId property.
     * 
     */
    public int getBandVersionId() {
        return bandVersionId;
    }

    /**
     * Sets the value of the bandVersionId property.
     * 
     */
    public void setBandVersionId(int value) {
        this.bandVersionId = value;
    }

    /**
     * Gets the value of the chargeBand property.
     * 
     * @return
     *     possible object is
     *     {@link ChargeBand }
     *     
     */
    public ChargeBand getChargeBand() {
        return chargeBand;
    }

    /**
     * Sets the value of the chargeBand property.
     * 
     * @param value
     *     allowed object is
     *     {@link ChargeBand }
     *     
     */
    public void setChargeBand(ChargeBand value) {
        this.chargeBand = value;
    }

    /**
     * Gets the value of the effectDate property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public Date getEffectDate() {
        return effectDate;
    }

    /**
     * Sets the value of the effectDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setEffectDate(Date value) {
        this.effectDate = value;
    }

    /**
     * Gets the value of the expireDate property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public Date getExpireDate() {
        return expireDate;
    }

    /**
     * Sets the value of the expireDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setExpireDate(Date value) {
        this.expireDate = value;
    }

    /**
     * Gets the value of the price property.
     * 
     */
    public int getPrice() {
        return price;
    }

    /**
     * Sets the value of the price property.
     * 
     */
    public void setPrice(int value) {
        this.price = value;
    }

    /**
     * Gets the value of the timeZone property.
     * 
     * @return
     *     possible object is
     *     {@link TimeZone }
     *     
     */
    public TimeZone getTimeZone() {
        return timeZone;
    }

    /**
     * Sets the value of the timeZone property.
     * 
     * @param value
     *     allowed object is
     *     {@link TimeZone }
     *     
     */
    public void setTimeZone(TimeZone value) {
        this.timeZone = value;
    }
    
    public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if ((obj == null) || (obj.getClass() != this.getClass()))
		{
			return false;
		}
		// object must be Test at this point
		ChargeBandVersion chargebandversion = (ChargeBandVersion) obj;
		return bandVersionId == chargebandversion.getBandVersionId();
	}

}
